﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class stop : MonoBehaviour
{
    float time = 0f;
    public void stopGame() 
    {
        if (time == 0f) 
        {
            time++;
            return;
        }
        else
        {
            Time.timeScale = 0f;
        }
    }
   
}
